package Operation;

import Book.Book;
import Book.BookList;

import java.util.Arrays;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * user:likai
 * Date:2022-09-30
 * Time:11:32
 */
public class DisplayOperation implements IOperation{
    @Override
    public void ioperation(BookList bookList) {
        System.out.println("查看图书");
        int curSize= bookList.getUseSize();
        for (int i = 0; i < curSize; i++) {
            Book book=bookList.getPos(i);
            System.out.println(book.toString());
        }
    }
}
